#!/bin/bash

echo -e "\e[1;33m[root@localhost ~]# lspci -vvv |grep -i 'Non-Volatile' \e[0m"
lspci -vvv |grep -i "Non-Volatile"


lspci -vvv |grep -i "Non-Volatile" | while read line; do
    bdf=$(echo $line | awk '{print $1}')
    echo -e "\e[1;33m[root@localhost ~]# lspci -v -n -s $bdf \e[0m"
    # 使用 smartctl 命令获取基本信息
    lspci -v -n -s $bdf 
    done

